<?php
          $bMail = false;
          $bPDF = true;
          require_once 'config.inc.php';

          if($bMail){
            include_once 'classes/mail.php';
            $Mail = new sendMail();
            $Mail->fuSending();

            $Mail = null;
          }

          if($bPDF){
            include_once 'classes/pdf.php';
            $pdf = new createPDF();
            $strPDF=$pdf->fuCreatePDF();
            //header("Content-Disposition: inline; filename=test.pdf");
            header("Content-type: application/pdf");
            echo $strPDF;
            $pdf = null;
          }

?>
